package com.probiz.estore.common.model.customer;

import com.probiz.estore.common.model.customer.base.ReviewEligibilityTbl;

/**
 * Model class for ReviewEligibility. Add not database mapped fileds in this class.
 */
public class ReviewEligibility extends ReviewEligibilityTbl {
	public static final Short RESULT_NOLOG = (short)-1 ;//未登录，不可评论
	public static final Short RESULT_UNAVAILABLE = (short)0 ;//未购物，不可评论
	public static final Short RESULT_AVAILABLE = (short)1 ;//可评论
	public static final Short RESULT_OVERCOUNT = (short)2 ;//不可评论，因为已超出可评论次数
	public static final Short RESULT_OVERTIME = (short)3 ;//不可评论，因为已超出可评论时间
  	/**
	 * Default Empty Constructor for class ReviewEligibility
	 */
	public ReviewEligibility () {
		super();
	}
	
	/**
	 * 定义实体的业务名取值； reviewEligibilityName
	 * 必须手工完成这个部分，否则编译不通过。
	 */
	public String getReviewEligibilityName () {
		if (reviewEligibilityId == null)
	        return "";
	    else
			//返回一个指定有业务意义的属性值;
			//如：product的VO就用product.productName
	        return this.getReviewEligibilityId().toString();
	}
	
	/**
	 * Default Key Fields Constructor for class ReviewEligibility
	 */
	public ReviewEligibility (
		 Integer in_reviewEligibilityId
		) {
		super (
		  in_reviewEligibilityId
		);
	}

}
